<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" href="__STATIC__/admin/Bootstrap/Css/bootstrap.min.css" />
	<style type="text/css">
		/*分页样式*/
		.cms_page{
			text-align: center;
		}
		.cms_page strong{
			margin-left: 3px;
			padding: 6px 5px;
			/*border: 1px solid #1FBD9E;*/
		}
		.cms_page a{
			margin-left: 3px;
			padding: 6px 5px;
			border: 1px solid #ccc;
		}
		.cms_page span.close{
			float: none;
		}
	</style>
</head>
<body>
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<table class="table table-bordered table-hover">
					<thead>
						<tr>
							<th>
								属性ID
							</th>
							<th>
								属性名称
							</th>
							<th>
								属性类别
							</th>
							<th>
								属性值
							</th>
							<th>
								操作
							</th>
						</tr>
					</thead>
					<tbody>
						<foreach from="$typeAttrData" value="$v" key="$k">
							<tr class="success">
								<td>
									{$v.taid}
								</td>
								<td>
									{$v.aname}
								</td>
								<td>
									<if value="$v.atype">规格<else/>属性</if>
								</td>
								<td>
									{$v.avalue}
								</td>
								<td>
									<a href="{|U:'edit',array('taid'=>$v['taid'])}" class="btn btn-warning"><i class="icon-pencil icon-white"></i>修改</a>
									<a href="javascript:;" class="btn btn-danger" onclick="if(confirm('确定要删除吗?')) location.href='{|U:'del',array('taid'=>$v['taid'])}'"><i class="icon-trash icon-white"></i>删除</a>
								</td>
							</tr>
						</foreach>
						<tr>
							<td colspan='5' align='center'>
								<a href="{|U:'add',array('tid'=>Q('get.tid'))}"  class="btn btn-primary"><i class="icon-pencil icon-white"></i>添加属性</a>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</div>
	<div class="cms_page">
		{$page}
	</div>
</body>
</html>